<!--
 * @Description:BOM应用
 * @Author: Sun
 * @Date: 2019-07-01 20:05:50
 * @LastEditors: Sun
 * @LastEditTime: 2019-07-10 22:40:39
 -->
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>BOM应用</title>
	<style>
		#div1 {
			width: 200px;
			height: 200px;
			background: red;
			position: absolute;
		}
	</style>
	<script>
		window.onload = function () {
		 console.log(navigator.userAgent)
		}
	</script>
</head>

<body>
	<div id="div1">
		<span>分享到</span>
	</div>
</body>

</html>